Vietnamese ID Card Recognition
Requirements
- The input image must have 4 clear angles or all main components of a Vietnamese ID card such as document title, contents, etc.
 - All information fields must be visible, readable, unmodified, not blurred.
 - The input image must contains only one document, as well as none of other objects with text on them.
 - The input image size does not exceed 5 MB and the minimum resolution is approximately 1280x720 to ensure the confident rate.
 - The ratio of Vietnamese ID card area must be at least 2/3 of the total image area.
 
Request
Request Url
POST https://api.fpt.ai/vision/vnm/id-fraudcheck
Request Headers
| Parameter | Required | Default | Description | 
|---|---|---|---|
| api_key | Yes | Your api key ( get from console.fpt.ai ) | 
Request Body
In order to recognize an Vietnamese ID Card on the photo, a single image or image URL must be sent with the request by using one in 5 keys below:
| Parameter | Required | Type | Description | 
|---|---|---|---|
| image | No. Set either this parameter or image_url or image_base64. | File | Image file | 
| image_url | No. Set either this parameter or image or image_base64. | String | Image URL. Currently, HTTP/HTTPS URLs are supported | 
| image_base64 | No. Set either this parameter or image or image_url. | String | Image in the form of base64 string | 
| image_list[] | No. Set either this parameter or image or image_url or image_base64. | String | List of image files | 
| url_list[] | No. Set either this parameter or image or image_url or image_base64. | String | List of image URLs | 
Sample Request
Using image
curl --location --request POST 'https://api.fpt.ai/vision/vnm/id-fraudcheck' \
--header 'api_key: xxxxxxx' \
--form 'image=@/path/to/image' \
--form 'face=1'
Using URL
curl --location --request POST 'https://api.fpt.ai/vision/vnm/id-fraudcheck' \
--header 'api_key: xxxxxxx' \
--form 'image_url=link/to/image' \
--form 'face=1'
Using base64-string image
curl --location --request POST 'https://api.fpt.ai/vision/vnm/id-fraudcheck' \
--header 'api_key: xxxxxxx' \
--form 'image_base64=image/in/form/of/base64-string' \
--form 'face=1'